package com.clementheliou.cheliou.dal.core.hibernate.dialect;

import org.hibernate.dialect.HSQLDialect;

/**
 * Enhanced version of {@link HSQLDialect}. See the overriden methods docs to
 * get details about the improvements.
 * 
 * @author Clément HELIOU (clement.heliou@gmail.com)
 * @see {@link HSQLDialect}.
 * @since 1.0
 */
public class CustomHSQLDialect extends HSQLDialect {

	/**
	 * <i>{@inheritDoc}</i>
	 * <p>
	 * We don't need to drop constraints before dropping tables, that just leads
	 * to error messages about missing tables when we don't have a schema in the
	 * DB.
	 * </p>
	 * 
	 * @author Clément HELIOU (clement.heliou@gmail.com)
	 * @since 1.0
	 */
	@Override
	public boolean dropConstraints() {
		return false;
	}

}
